package java_test;

public class SearchStringEmp {
    public static void main(String[] args) {
        String str = "Google Runoob Taobao";
        int strIndex = str.indexOf("Runoob");
        if (strIndex == -1) {
            System.out.println("没有找到");
        } else {
            System.out.println("Runoob " + strIndex);
        }
    }
}
